<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <#--<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>-->
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body, html {
            font-family: 'Microsoft YaHei'!important;
        }
        td {
            /* width: 25%; */
        }
        .box {
            margin-bottom: 8px
        }
        .value {
            margin-bottom: 8px
        }
        .box div {
            float: left;
            width: 25%;
            text-align: center;
            margin-bottom: 8px
        }
        .value div {
            float: left;
            width: 25%;
            text-align: center;
            margin-bottom: 8px
        }
        .cent {
            text-align: center;
        }
        .cent td {
            padding-bottom: 8px;
        }
        .bg-color {
            background:rgb(237, 237, 239)
        }
    </style>
</head>
<body>
<p>${applicant}您好！</p>
<p>教室结算相关详情如下:</p>
<table border="1" width='850' cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
    <tbody>
    <tr>
        <td class="bg-color">培训名称</td>
        <td colspan="5" style="text-align:center">${trainingName}</td>
    </tr>
    <tr>
        <td class="bg-color">教室地点</td>
        <td style="text-align:center">${address}</td>
        <td class="bg-color">培训类型</td>
        <td style="text-align:center">${type}</td>
        <td class="bg-color">参训人数</td>
        <td style="text-align:center" width="120">${numberOfPeople}</td>
    </tr>
    <tr>
        <td class="bg-color">基础费用</td>
        <td colspan="2" style="text-align:center">${RoomCost}</td>
        <td class="bg-color">物资费用</td>
        <td colspan="2" style="text-align:center">${MaterialCost}</td>
    </tr>
    <tr>
        <td class="bg-color">开始时间</td>
        <td colspan="2" style="text-align:center">${beginTime}</td>
        <td class="bg-color">结束时间</td>
        <td colspan="2" style="text-align:center">${endTime}</td>
    </tr>
    <tr>
        <td class="bg-color">申请人</td>
        <td colspan="2" style="text-align:center">${applicant}</td>
        <td class="bg-color">申请部门</td>
        <td colspan="2" style="text-align:center">${dept}</td>
    </tr>
    <tr>
        <td class="bg-color">物资明细</td>
        <td colspan="5">
            <table  width='92%' cellspacing="0" cellpadding="0" style="border-collapse: collapse;margin: 5px">
                <tbody id="box">
                <tr>
                    <td>物资名称</td>
                    <td>数量/小时</td>
                    <td>单价</td>
                    <td>总价</td>
                </tr>
                <#list materialDtl as list>
                    <tr>
                        <td>${list.materialName}</td>
                        <td>${list.number}</td>
                        <td>${list.price}</td>
                        <td>${list.amts}</td>
                    </tr>
                </#list>
                </tbody>
            </table>
        </td>
    </tr>
    </tbody>
</table>
<p>说明:</p>
<p>1、基础费用=教室基础费用*培训时间（晚上22：00至次日8：00不收取基础费）</p>
<p>2、物资费用=计件类物资单价*参训人数+计时类服务单价*服务时长（不足半小时者以半小时计算）</p>
</body>
</html>
